package cn.sc.allinpay.allfavour.app;

import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;

import com.facebook.stetho.Stetho;
import com.tencent.bugly.crashreport.CrashReport;

import cn.pai.common.log.Loger;

/**
 * 应用基类
 * author：pany
 * on 2017/10/30 23:00
 */
public class App extends Application {

    private AppWrapper appWrapper = AppWrapper.getInstance();

    private static Context context;
    @Override
    public void onCreate() {
        super.onCreate();
        Loger.debug = true;
        Stetho.initializeWithDefaults(this);
        appWrapper.init(this);
        CrashReport.initCrashReport(getApplicationContext(), "024a364cf2", false);
        context = getApplicationContext();
    }
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }
    public static Context getContext() {
        return context;
    }

}
